package ru.nsu.fit.ask_joe;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import ru.nsu.fit.ask_joe.user_interface_manager.UserInterfaceManager;
import ru.nsu.fit.ask_joe.user_interface_manager.realization.AuthenticationPanel;
import ru.nsu.fit.client.core.log_manager.realization.KernelLogManager;

public class AskJoeMainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		MainManager.setUserInterfaceManager(new UserInterfaceManager(this));
		MainManager.getUserInterfaceManager().setCurrentPanel(new AuthenticationPanel());
        KernelLogManager.staticSetLogger(MainManager.getLogManager().getLogger());
    }

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
}
